#include<iostream>
#include<unistd.h>
using namespace std;


int main(){
  cout<<"this is process begin"<<endl;
  //int ret = execl("/usr/bin/ls","ls","-a","--color=auto",NULL);
  char* argv[]={
    "ls",
    "-a",
    "--color=auto",
    NULL
  };
  int ret = execv("/usr/bin/ls",argv);
  cout<<"this is process endl"<<ret<<endl;

  return 0;
}
